angular.module('ilapp', ['ngRoute'])
    .run(function($rootScope) {
        $rootScope.app = {
            title: 'test'
        }
    })
    .config(['$routeProvider', function($routeProvider) {
        $routeProvider.when('/main', {
            templateUrl: 'view/home.html',
            controller: 'homeController'
        }).otherwise('/main');
    }]);